/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.testis.wirelesssecuritymodule.core;

import org.testis.utils.OsInfo;

/**
 *
 * @author nurhat
 */
public class WirelessConnectionCheckerFactory {

    public static WirelessConnectionChecker getInstance(String nicGuid) {
        if (OsInfo.isWindows()) {
            return new WlanApiConnectionChecker(nicGuid);
        } else if (OsInfo.isLinux()) {
            return new WpaCliWrapper(nicGuid);
        } else {
            throw new UnsupportedOS("Running on unsupported OS...");
        }
    }
}
